<template>
  <div>
    <banner :list="pics"></banner>
    <article-list :type="type"></article-list>
  </div>
</template>
<script>
  var banner = require("../../components/user/banner.vue");
  var articleList = require("../../components/user/article-list.vue");
  export default{
		data(){
			return {
				pics:[],
        type:"index",
        state:true
			}
		},
    components:{
      banner:banner,
      articleList:articleList
    },
    route:{
      data(transition){
        var th = this;
        //获取轮播图
        this.$http.get("/getBanner" , function(res){
          transition.next({pics:res.banner})
        },"JSON");
      }
    }
  }
</script>
<style>
  @import url("../../resources/webSite/css/article-list.css");
</style>
